import { ref, computed } from 'vue'
import { defineStore } from 'pinia'
// 计数器模块
export const useCounterStore = defineStore('counter', () => {
  const count = ref(100)
  const delCount = (n) => {
    count.value -= n
  }

  return { count, delCount }
})
